package com.ant.storage.pojo;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author melon
 * @since 2023-12-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Depreciation对象", description="")
public class Depreciation implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "城市id")
    @TableField("city_id")
    private Integer cityId;

    @ApiModelProperty(value = "部门id")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "资产编码")
    @TableField("property_code")
    private String propertyCode;

    @ApiModelProperty(value = "资产名称")
    @TableField("property_name")
    private String propertyName;

    @ApiModelProperty(value = "资产类型")
    @TableField("property_type")
    private String propertyType;

    @ApiModelProperty(value = "资产单位")
    @TableField("property_unit")
    private String propertyUnit;

    @ApiModelProperty(value = "数量")
    @TableField("property_amount")
    private Integer propertyAmount;

    @ApiModelProperty(value = "用途")
    @TableField("use_to")
    private String useTo;

    @ApiModelProperty(value = "折旧方式")
    @TableField("depreciation_method")
    private String depreciationMethod;

    @ApiModelProperty(value = "折旧日期")
    @TableField("depreciation_period")
    private Integer depreciationPeriod;

    @ApiModelProperty(value = "购入时间")
    @TableField("purchase_time")
    private Date purchaseTime;

    @ApiModelProperty(value = "使用时间")
    @TableField("used_date")
    private Date usedDate;

    @ApiModelProperty(value = "购入金额")
    @TableField("purchase_amount")
    private BigDecimal purchaseAmount;

    @ApiModelProperty(value = "存放地点")
    @TableField("storage_location")
    private String storageLocation;

    @ApiModelProperty(value = "变动方式")
    @TableField("change_method")
    private String changeMethod;

    @ApiModelProperty(value = "资产科目")
    @TableField("asset_account")
    private String assetAccount;

    @ApiModelProperty(value = "折旧期数")
    @TableField("periods_amount")
    private Integer periodsAmount;

    @ApiModelProperty(value = "剩余期数")
    private Integer periods;

    @ApiModelProperty(value = "折扣金额")
    private BigDecimal amount;

    @ApiModelProperty(value = "累计金额")
    @TableField("accumulated_amount")
    private BigDecimal accumulatedAmount;

    @ApiModelProperty(value = "资产状态")
    private String status;

    @ApiModelProperty(value = "备注")
    private String notes;

    @ApiModelProperty(value = "图片")
    private String annex;

    @ApiModelProperty(value = "创建人")
    @TableField("create_by")
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField("creation_time")
    private Date creationTime;


}
